package cn.magic.feignclient;

import cn.magic.Store;
import cn.magic.ajax.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server",fallbackFactory = StoreFallbackFactory.class)
public interface StoreFeignClient {

    @PostMapping("/store/add")
    AjaxResult save(@RequestBody Store store);

}
